import request from '@/utils/request'

export function getToDayRgList(query) {
  return request({
    url: '/seting/toDayRgList',
    method: 'post'
  })
}

export function getstorelist(data) {
  return request({
    url: '/seting/storeList',
    method: 'get',
    params: data
  })
}
export function stores(data) {
  return request({
    url: '/seting/storeUpdata',
    method: 'post',
    data
  })
}
export function delstore(data) {
  return request({
    url: '/seting/storedel',
    method: 'get',
    params: data
  })
}


export function fetchList(query) {
  return request({
    url: '/admin/setting',
    method: 'post'
  })
}
export function fetchStorenav(data) {
  return request({
    url: '/category/topCategory',
    method: 'post',
    data
  })
}

export function deleteOrder(data) {
  return request({
    url: '/order/destory',
    method: 'post',
    data
  })
}
export function fetchwuliu(data) {
  return request({
    url: '/order/fetchwuliu',
    method: 'post',
    data
  })
}
export function testpaynext(data) {
  return request({
    url: '/order/testpaynext',
    method: 'post',
    data
  })
}

export function fetchdelbanner(data) {
  return request({
    url: '/index/fetchdelban',
    method: 'get',
    params: data
  })
}

export function fetchBanner(data) {
  return request({
    url: '/index/getbanner',
    method: 'get',
    params: data
  })
}

export function fetchstoreban(data) {
  return request({
    url: '/index/banstore',
    method: 'post',
    data
  })
}

export function oderinfo(data) {
  return request({
    url: '/order/detail',
    method: 'get',
    params: data
  })
}
export function fetchgoodsType(data) {
  return request({
    url: '/category/goodsCategory',
    method: 'post',
    data
  })
}
export function fetchStorenavall(data) {
  return request({
    url: '/category/index',
    method: 'post',
    data
  })
}



export function fetchStorenav_create(data) {
  return request({
    url: '/category/store',
    method: 'post',
    data
  })
}
export function fetchStorenav_del(data) {
  return request({
    url: '/category/destory',
    method: 'post',
    data
  })
}

export function fetchStorecatype(data) {
  return request({
    url: '/category/allCategory',
    method: 'post',
    data
  })
}
export function createStorecatype(data) {
  return request({
    url: '/admin/create_store_catype',
    method: 'post',
    data
  })
}
export function resetpwdfn(data) {
  return request({
    url: '/admin/resetpwd',
    method: 'post',
    data
  })
}
export function deleteStore(data) {
  return request({
    url: '/goods/destory',
    method: 'post',
    data
  })
}
export function uploadAiIcon(data) {
  return request({
    url: '/upload/aiIcon',
    method: 'post',
    data
  })
}
export function uploadImg(data) {
  return request({
    url: '/upload/brandPic',
    method: 'post',
    data
  })
}
export function uploadPdf(data) {
  return request({
    url: '/upload/uploadPdf',
    method: 'post',
    data
  })
}
export function updateStorecatype(data) {
  return request({
    url: '/admin/updata_store_catype',
    method: 'post',
    data
  })
}

export function fetchUserList(data) {
  return request({
    url: '/user/index',
    method: 'post',
    data
  })
}
export function fetchdelress(data) {
  return request({
    url: '/user/deladdress',
    method: 'post',
    data
  })
}
export function fetchaddress(data) {
  return request({
    url: '/user/address',
    method: 'post',
    data
  })
}
export function fetchazbreport(data) {
  return request({
    url: '/user/zbreport',
    method: 'post',
    data
  })
}
export function fetchUserListdetail(data) {
  return request({
    url: '/user/info',
    method: 'post',
    data
  })
}
export function fetchstoderList(data) {
  return request({
    url: '/order/index',
    method: 'post',
    data
  })
}
export function updates_store_oder(data) {
  return request({
    url: '/admin/updates_store_oder',
    method: 'post',
    data
  })
}

export function fetchreportList(data) {
  return request({
    url: '/admin/reportList',
    method: 'post',
    data
  })
}
export function fetchsetstore(data) {
  return request({
    url: '/seting/fetchsetstore',
    method: 'post',
    data
  })
}
export function fetchsetdelall() {
  return request({
    url: '/seting/fetchsetdelall',
    method: 'get'
  })
}

export function fetchsetting(data) {
  return request({
    url: '/seting/fetchseting',
    method: 'get',
    params: data
  })
}


export function getsetingorderlist(data) {
  return request({
    url: '/seting/oderlist',
    method: 'get',
    params: data
  })
}

export function getsetinglist(data) {
  return request({
    url: '/seting/index',
    method: 'get',
    params: data
  })
}
export function delseting(data) {
  return request({
    url: '/seting/delseting',
    method: 'get',
    params: data
  })
}

export function storesetingoder(data) {
  return request({
    url: '/seting/storeupOrder',
    method: 'post',
    data
  })
}
export function storeseting(data) {
  return request({
    url: '/seting/storeseting',
    method: 'post',
    data
  })
}



export function getisuse(data) {
  return request({
    url: '/user/getisuse',
    method: 'post',
    data
  })
}
export function delisuse(data) {
  return request({
    url: '/user/delisuse',
    method: 'post',
    data
  })
}
export function storeisuse(data) {
  return request({
    url: '/user/storeisuse',
    method: 'post',
    data
  })
}

export function getSmslogs(data) {
  return request({
    url: '/admin/getsmslogs',
    method: 'post',
    data
  })
}
export function fetchreporttkList(data) {
  return request({
    url: '/admin/reportkList',
    method: 'post',
    data
  })
}
export function fetchreportListUpdata(data) {
  return request({
    url: '/admin/reportListupdata',
    method: 'post',
    data
  })
}
export function reportListbohiu(data) {
  return request({
    url: '/admin/reportListbohiu',
    method: 'post',
    data
  })
}
export function fetchtxListUpdata(data) {
  return request({
    url: '/admin/txListupdata',
    method: 'post',
    data
  })
}
export function txListbohui(data) {
  return request({
    url: '/admin/txListbohui',
    method: 'post',
    data
  })
}

export function fetchArticle(id) {
  return request({
    url: '/vue-element-admin/article/detail',
    method: 'get',
    params: { id }
  })
}

export function fetchPv(pv) {
  return request({
    url: '/vue-element-admin/article/pv',
    method: 'get',
    params: { pv }
  })
}

export function createuser(data) {
  return request({
    url: '/user/createuser',
    method: 'post',
    data
  })
}

export function createArticle(data) {
  return request({
    url: '/admin/updataSet',
    method: 'post',
    data
  })
}

export function fetchStoreList(data) {
  return request({
    url: '/goods/index',
    method: 'post',
    data
  })
}

export function createStore(data) {
  return request({
    url: '/goods/store',
    method: 'post',
    data
  })
}

export function updateArticle(data) {
  return request({
    url: '/goods/updataStore',
    method: 'post',
    data
  })
}


export function fetchAiTools(data, url,method='post') {
  return request({
    url: url,
    method: method,
    data
  })
}
